using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// SFUI_RawImage组件
/// </summary>
[AddComponentMenu("UI/HF/SFUI_RawImage")]
public partial class SFUI_RawImage : RawImage,ISF_UIBehaviour
{
    public Graphic graphic
    {
        get { return this; }
    }
    public void SetAlpha(float alpha)
    {
        if (null != graphic)
        {
            Color c = graphic.color;
            c.a = alpha;
            graphic.color = c;
        }
    }
    private RectTransform rectTrans;
    public RectTransform RectTrans
    {
        get
        {
            if (null == rectTrans) rectTrans = GetComponent<RectTransform>();
            return rectTrans;
        }
    }
}